<%@ include file="/public/include.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
 <link type="text/css" rel="stylesheet" href="styles/pub/default.css">
	<script type="text/javascript" language="JavaScript" src="scripts/pub/common.js"></script>
	<script type="text/javascript" language="JavaScript" src="scripts/biz/check.js"></script>
</head>
<body>
<c:set value="${map.decl}" var="decl" />
<div class="main" align="center">
	<table style="width:100%;" align="center">
		<%@ include file="/DeclInfoView.jsp" %>
		<%@ include file="/DeclCheckView.jsp" %>
		<%@ include file="/GoodsInfoView.jsp" %>
		
		<c:if test="${map.opt!='view'&&myfunc:containAny('ROLE_DECL_MANAGE',map.currentUser.authorityNames)}">
		<tr>
			<td align="left">
				<table style="width:60%;">
					<caption>
						监管内容
					</caption>
					<tr><td>
						<form id="DeclSuperviseForm" action="DeclModify.do" method="post">
							<table  class="bean">
								<tr class="size">
								  <td width="15%"></td>
								  <td width="18%"></td>
								  <td width="10%"></td>
								  <td ></td>
								  <td width="10%"></td>
								  <td width="15%"></td>
								</tr>
							<c:if test="${decl.supervisePlan.modifyFlag==1}">
								<tr>
								  <td class="formLabel" >监管结果</td>
								  <td><select name="result" tabindex="${decl.supervisePlan.result-1}">
								  		<option value="1">合格</option>
								  		<option value="2">处理后合格</option>
								  		<option value="3">不合格</option>
								  </select></td>
								  <td class="formLabel" >备注</td>
								  <td>
								  	<textarea name="remark" rows="2" cols="30">${decl.supervisePlan.remark}</textarea>
								  </td>
								  <td class="formLabel" >操作</td>
								  <td align="center">
								  	<input type="button" value="提交" onclick="return submitDeclSupervise(${decl.id});">
								  </td>
								</tr>
							</c:if>
							<c:if test="${decl.supervisePlan.modifyFlag==2}">
								<tr>
								  <td class="formLabel" >监管结果</td>
								  <td>
								  	<mytag:c2s key="${decl.supervisePlan.result}" type="Check_result"/>
								  </select></td>
								  <td class="formLabel" >备注</td>
								  <td colspan="3">
								  	${decl.supervisePlan.remark}
								  </td>
								</tr>
								<tr>
								  <td class="formLabel" >操作人</td>
								  <td>
								  	<mytag:c2s key="${decl.supervisePlan.userid}" type="ciq"/>
								  </select></td>
								  <td class="formLabel" >操作时间</td>
								  <td colspan="3">
								  	${myfunc:d2s(decl.supervisePlan.updatedTime)}
								  </td>
								</tr>
							</c:if>
								
							</table>
						</form>
					</td></tr>
				</table>
			</td>
		</tr>
		</c:if>
		
		
		<tr class="button">
		  <td align="center">
		  	<div>
			    <input type="button" value=" 返回 " onClick="window.history.back();">
		  	</div>
		   </td>
		</tr>
	</table>
</div>
</body>
</html>
